package org.dtrd.modules.record.entity.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 健康记录时段请求
 *
 * @author 萧
 * @date:2021-10-03 7:15 下午
 **/
@Data
@ApiModel(value = "健康记录时段请求")
public class TimePeriodRequest {

    @ApiModelProperty(value = "患者Id")
    private Integer patientId;

    @ApiModelProperty(value = "请求类型", example = "0 、2 按照开始与结束时间查询，3 按照查询周期period取值查询")
    private Integer type;

    @ApiModelProperty(value = "查询周期", example = "按照周期查询 0：全部 1：一周、2：两周、3：一月、4：两月 5 三月 6 半年 7 一年")
    private int period;

    @ApiModelProperty(value = "页码，从1开始")
    private Integer page;

    public Integer getPage() {
        return page == null ? pageNo : page;
    }

    @ApiModelProperty(value = "页码")
    private Integer pageNo;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize;

    @ApiModelProperty(value = "开始时间", example = "yyyy-MM-dd")
    private String startTime;

    @ApiModelProperty(value = "结束时间", example = "yyyy-MM-dd")
    private String endTime;

    @ApiModelProperty(value = "是否曲线图请求", example = "1 曲线图数据")
    private Integer forChart;

    @ApiModelProperty(value = "血糖来源类型", notes = "0-客户端,9-微信,10-瞬感蓝牙版,11-瞬感移动版,12-小糖医,13-爱奥乐,14-小程序")
    private Integer sourceType;

    @ApiModelProperty("备注")
    private String remark;

}
